USE [VIETPUBLISHER]
GO

/****** Object:  Table [dbo].[T_SC_FileList]    Script Date: 06/26/2012 06:33:02 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[T_SC_FileList](
	[GroupId] [int] NOT NULL,
	[FileId] [uniqueidentifier] NOT NULL,
	[UpOrder] [int] NULL,
	[Name] [nvarchar](200) NULL,
	[Ext] [nvarchar](100) NULL,
	[Size] [numeric](18, 0) NULL,
	[PhysicalPath] [nvarchar](max) NULL,
 CONSTRAINT [XPK_T_CO_FileList] PRIMARY KEY CLUSTERED 
(
	[GroupId] ASC,
	[FileId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[T_SC_FileList]  WITH CHECK ADD  CONSTRAINT [R_4] FOREIGN KEY([GroupId])
REFERENCES [dbo].[T_SC_FileGroup] ([GroupId])
GO

ALTER TABLE [dbo].[T_SC_FileList] CHECK CONSTRAINT [R_4]
GO


